//
//  UIViewController1.m
//  popaAnimation
//
//  Created by wanglei on 16/12/28.
//  Copyright © 2016年 wanglei. All rights reserved.
//

#import "UIViewController1.h"

@interface UIViewController1 ()
@end

@implementation UIViewController1

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor blueColor];
    self.navigationItem.prompt = @"注解";
    self.navigationItem.title = @"我是一号";
    UIBarButtonItem *itemTwo = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemSave target:self action:@selector(pushToTwo)];
    self.navigationItem.rightBarButtonItem = itemTwo;
    
   
}

- (void)pushToTwo{
    UIViewController2 *viewController = [[UIViewController2 alloc]init];
    [self.navigationController pushViewController:viewController animated:YES];
    
}
    - (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
